﻿using System.Web;
using System.Web.Optimization;

namespace JsRoot
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/Framework/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/Backbone").Include(
                        "~/Scripts/Framework/underscore.js",
                        "~/Scripts/Framework/backbone.js"));

            bundles.Add(new ScriptBundle("~/bundles/Plugin").Include(
                        "~/Scripts/Plugin/jquery-ui.js",
                        "~/Scripts/Plugin/jquery-jtemplates_uncompressed.js",
                        "~/Scripts/Plugin/Backbone.ModelBinder.js",
                        "~/Scripts/Plugin/date.js",
                        "~/Scripts/Plugin/jquery.pagination.js",
                        "~/Scripts/Plugin/jquery-extender.js",
                        "~/Scripts/Plugin/jquery.jstree.js"));

            bundles.Add(new ScriptBundle("~/bundles/Custom").IncludeDirectory(
                        "~/Scripts/Custom", "*.js"));

            

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
                "~/Content/custome.css",
                "~/Content/pagination.css"));

            bundles.Add(new StyleBundle("~/Content/jqueryuicss").Include(
                        "~/Content/themes/flick/jquery-ui-1.10.3.custom.css"));


            //bundles.Add(new StyleBundle("~/Content/jqueryuicss").Include(
            //            "~/Content/themes/base/jquery.ui.core.css",
            //            "~/Content/themes/base/jquery.ui.resizable.css",
            //            "~/Content/themes/base/jquery.ui.selectable.css",
            //            "~/Content/themes/base/jquery.ui.accordion.css",
            //            "~/Content/themes/base/jquery.ui.autocomplete.css",
            //            "~/Content/themes/base/jquery.ui.button.css",
            //            "~/Content/themes/base/jquery.ui.dialog.css",
            //            "~/Content/themes/base/jquery.ui.slider.css",
            //            "~/Content/themes/base/jquery.ui.tabs.css",
            //            "~/Content/themes/base/jquery.ui.datepicker.css",
            //            "~/Content/themes/base/jquery.ui.progressbar.css",
            //            "~/Content/themes/base/jquery.ui.theme.css"));
        }
    }
}